/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2023-03-25
 * Time: 23:34
 */
public class Main {
    public static void main(String[] args) {
        RBTree rbTree=new RBTree();
        int [] arr={12,1,9,2,0,11,7,19,4,15,18,5,14,13,10,16,6,3,8,17};
        for (int i = 0; i < arr.length; i++) {
            rbTree.insert(arr[i]);
        }
        rbTree.inOrder(rbTree.root);
        System.out.println();
        System.out.println(rbTree.isRBTree(rbTree.root));
    }
}
